Repository navigation
fix(studio): a sealed audio group's undo reads the frame's reply only in its shape - #8291
Merged
Merged
Conversation
… in the shape it asked for
Contributor
Edit accuracy: accurate 271 (base branch 271), smooth 73 of thoseThe gate passes. Quarantined, measured but not gated (0) Unstable (1)
|
eddy-heygen
approved these changes
Nov 20, 2026
eddy-heygen
left a comment
There was a problem hiding this comment.
(Eddy's agent) Reviewed by Eddy's Claude agent at commit 6e36b2f (full diff read by me).
Verdict: approve.
Summary
Creating an audio group in a sealed preview kept the frame's reply as the undo data without looking at it. The reply is now used only if it has the expected shape: a list of previous values exactly as long as the list of members sent, and a true-or-false "changed". Otherwise no undo data is kept and the undo does nothing in the frame.
What I checked
- The check runs before the undo closure is built, so a malformed reply cannot reach the later request.
- The undo sends the kept values back to the same frame only; they are not written to a file or to Studio's own page.
Non-blockers
- The entries of the list are not checked individually. They only travel back to the frame that produced them, so I see no harm; say so in a comment if that ever changes.
CI: 58 pass, 20 skipped, none failing or pending.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Grouping audio clips in a sealed preview now reads the preview's
assign-audio-groupreply only in the shape Studio asked for. When the save then fails, the undo of the preview change ends cleanly on a reply of the wrong shape, and the save's own error is what the person sees.Why
The port's replies are data from the frame, and its callers check them (
editingPort.ts: "callers validate results"). This one readassigned.previous[i]unchecked, so a reply without apreviousarray threwCannot read properties of nullinside the undo. That replaced the save's error and skipped the preview re-seek after it.How
patchSealedGroupkeeps the reply only whenpreviousis an array with one entry per member andchangedis a boolean; otherwise the undo has nothing to put back and returns. Each entry is still checked where it is used: only a non-empty string goes back as a member's group, anything else as no group (timelineAudioGroupCreate.ts, the undo'smembersmap).No visible change
Nothing on screen changes: a failed grouping save already shows its error; it now shows the right one.
Test plan
fails without the fix:
packages/studio/src/components/nle/audioSealedPreview.test.ts"ends a sealed group's undo cleanly when the frame's reply is not the shape it asked for" fails atf105cf90(the save rejects withCannot read properties of nullinstead ofdisk full) and passes at6e36b2f3, three runs in a row.src/hooksandsrc/components/nle: 1930 of 1930, three runs in a row; the whole build and Studio and coretscpass (Linux).What I did NOT exercise